<% note_item_counter = note_item_counter || 0 #грязный хак :)
%>
<!-- style="background:<%=++note_item_counter.modulo(2) == 0 ? "" : "#F0F3F5"%>;" -->
<li id="note_<%=note_item.id%>" class="note_item" >
  <div class="control_elements">
    <span class="drag">drag</span>
    <%=link_to_remote 'В',  { :url => {:controller => :notes, :action => :create, :note_id => note_item.id}, :method => 'post'}, :href => url_for(:controller => :notes, :action => :create, :note_id => note_item.id), :title => 'добавить чекбокс'%>
    <%=link_to_remote 'И',  { :url => edit_note_url(note_item), :method => 'get'}, :href => url_for(edit_note_url(note_item)), :title => 'изменить текс'%>
    <%=link_to_remote 'У',  { :url => note_url(note_item), :method => 'delete' }, :href => url_for(note_url(note_item)),:title => 'удалить в корзину',  :method => 'delete'%>
  </div>
  <span class="<%=note_item.todo && note_item.todo.done ? 'grey_note_text' : 'black_note_text'%>">   <%=h note_item.text %>    </span>
</li>